﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Shop
{
    /// <summary>
    /// 商品对应参数
    /// </summary>
    [Table("ShopProductPar")]
    public class ShopProductPar: FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        
        /// <summary>
        /// 参数名称
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string ParKey { get; set; }
        /// <summary>
        /// 参数值
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string ParValue { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public Guid ShopProductid { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        [Required]
        public float SpceWeight { get; set; } = 0;
    }
}
